const express = require("express")
const cors = require("cors")
const app = express()
app.use(express.urlencoded({extended:true}))
app.use(cors());

// 引入 路由
const userRouter = require("./routes/users")
// /users 用于区分不同文件接口
app.use("/users",userRouter)

app.listen("8080",()=>{
    console.log("服务器已开启");
})